"""
这个是用来测试登录页面的点击内容
需要的有：username,password,submit_loc

"""
from base.basepage import BasePage
from locate import allPage

class LoginPage(BasePage):

    def login_ecshop(self, url, username, password, verify):
        self.open(url)
        self.send_keys(allPage.username_loc, username)
        self.send_keys(allPage.password_loc, password)
        self.send_keys(allPage.verify_loc, verify)
        self.click(allPage.submit_loc)

